package org.example;

import org.openjdk.jol.info.ClassLayout;

public class Main13 {

    public static void main(String[] args) throws InterruptedException {
        Object o = new Object();
        synchronized (o) {
            System.out.println(ClassLayout.parseInstance(o).toPrintable());
        }
        Thread thread = new Thread(() -> {
            synchronized (o) {
                System.out.println("--THREAD--:" + ClassLayout.parseInstance(o).toPrintable());
            }
        });
        thread.start();
        thread.join();
        System.out.println("--END--:" + ClassLayout.parseInstance(o).toPrintable());
    }
}
